﻿namespace Models
{
    /// <summary>
    /// 用户
    /// </summary>
    public partial class UserModel : DataDepartmentBaseModel
    {
        /// <summary>
        /// 用户类型，1集团用户，2监管用户
        /// </summary>
        public LoginUserType LoginUserType { get; set; }

        /// <summary>
        /// 登录用户的所属类型的ID，可能是集团ID，可能是监管部门ID
        /// </summary>
        public int LoginTypeID { get; set; }

        /// <summary>
        /// 角色IDs
        /// </summary>
        public List<int> RoleIDs { get; set; }

        /// <summary>
        /// 部门名称集合
        /// </summary>
        public List<string> DepartmentNames { get; set; }

        /// <summary>
        /// 角色名称集合
        /// </summary>
        public List<string> RoleNames { get; set; }

        /// <summary>
        /// 部门用户ID
        /// </summary>
        public int DepartmentUserID { get; set; }
    }

    public class EditPasswordModel {
        public string OldPassword { get; set; }
        public string NewPassword { get; set; }
    }
}
